package com.abc.web.controller;

import com.abc.entity.UserCapital;
import com.abc.service.UserCapitalService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SystemController {
    @Reference
    private UserCapitalService userCapitalService;

    @RequestMapping("/hello")
    @ResponseBody
    public UserCapital hello() {
        UserCapital userCapital = userCapitalService.getByUid("000000000000000000000019830080");
        return userCapital;
    }
}
